package com.med.service.impl;

import com.med.mapper.AppointmentMapper;
import com.med.service.IAppointmentService;
import com.med.vo.AppointmentVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * Project:internet-based-healthcare
 * Package:com.med.service.impl
 *
 * @Description:
 * @Author:其一
 * @CreateTime: 2025-08-19-15-32
 */
@Service
public class AppointmentServiceImpl implements IAppointmentService {
    @Autowired
    private AppointmentMapper appointmentMapper;

    @Override
    public List<AppointmentVO> selectAppointment(AppointmentVO appointmentVO) {
        return appointmentMapper.selectAppointment(appointmentVO);
    }

    @Override
    public Boolean deleteAppointmentById(AppointmentVO appointmentVO) {
        return appointmentMapper.deleteAppointmentById(appointmentVO) > 0;
    }
}
